#!/usr/bin/python
# -*- coding: utf-8 -*-
#Under the terms of the General Public License v.3
#For more information see LICENSE.txt
from Map import *
from Player import *
import pygame

WIDTH = 320
HIGTH = 240

class Test(object):

	"""

	:version:
	:author:
	"""
	def main():
		screen = pygame.display.set_mode((WIDTH, HIGTH))
		pygame.display.set_caption("Map Module Test - Robot Game")

		map = Map()
		player = Player(map)
		exit_ = False

		while not exit_:

			for e in pygame.event.get():
				if e.type == QUIT:
					exit_ = True
				elif e.type == KEYDOWN and e.unicode == 'q':
					exit_ = True

			player.updatePosition()
			map.update()
			map.show(screen)
			player.showPlayer(screen)
			pygame.display.flip()
			pygame.time.wait(10)

	pygame.display.init()
	main()


